Skip to content

Instantly share code, notes, and snippets.

@SKempin
SKempin / Git Subtree basics.md
Last active February 9, 2026 23:19
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

Adding a subtree

Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:

@YeldhamDev
YeldhamDev / iconify.scm
Created May 18, 2019 00:30
"*.ico" generator script for GIMP
;Iconify.scm
;===========================
;Author...Giuseppe Bilotta
;Modified for Gimp 2.4.6+ by Ouch67
;http://www.gimptalk.com/forum/broken-scripts-t33501.html
;Resubmission to Gimp Plugin Registry & GimpTalk by Gargy
;Modified for Gimp 2.8 by Roland Clobus
;------------
;Description...: Iconify plug-in converts a single layer of a single image into a multi-layered image ready to be saved as a Windows icon.
;The new image will contain all standard sizes (16x16, 32x32, 48x48) at all standard bit depths (16 colors, 256 colors, 32-bit RGBA), with transparency support.
@tejainece
tejainece / vscode_marketplace
Last active February 9, 2026 23:18
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery
@AlexisTM
AlexisTM / test.cpp
Created May 5, 2021 12:11
Print types of variables at runtime c++
#include <type_name.h>
#include <iostream>
class A {
public:
int a = 1;
int b = 2;
int c = 3;
};
@sgup
sgup / recommended-routine.md
Last active February 9, 2026 23:16
Recommended Routine - Reddit BodyweightFitness
@Meshiest
Meshiest / godot multiplayer.md
Last active February 9, 2026 23:07
Godot 4 Multiplayer Overview

Godot 4 Scene Multiplayer

I'm too lazy to write this as official documentation so I'm transcribing my experiences here for reference.

This is high level and does not cover how to setup your peer, only how to use the API itself.

This is not a tutorial.

If you are just getting started, this tutorial by DevLogLogan is worth watching.

@DMontgomery40
DMontgomery40 / CODEX.md
Last active February 9, 2026 23:07
Ralph audit loop: Codex CLI read-only code audit runner

Ralph Audit Agent Instructions (OpenAI Codex)


Safety Notice (Customize)

If this codebase is production, handles money, or touches sensitive data: treat this audit loop as a high-risk operation. Run with least privilege, avoid exporting long-lived credentials in your shell, and keep the agent in read-only mode.


@will-deines
will-deines / avoiding-subagent-context-overflow.md
Created February 9, 2026 15:31
Claude Code: Avoiding subagent context overflow with file-based result passing

Avoiding Subagent Context Overflow in Claude Code

When Claude Code skills or prompts orchestrate multiple background subagents, a subtle but devastating problem emerges: context overflow from agent transcripts. This guide explains the problem, when it matters, and the battle-tested solution.


The Problem

When you launch a background subagent with the Task tool (run_in_background: true), the natural instinct is to call TaskOutput to collect its results. But TaskOutput doesn't return just the agent's final answer — it returns the entire agent transcript: every web page fetched, every search result, every tool call, every reasoning step.

@Techbrunch
Techbrunch / microsoft-teams-presence.md
Created April 27, 2020 17:45
Microsoft Team Presence

Presence is part of a user's profile in Microsoft Teams (and throughout Office 365) that indicates the user's current availability and status to other users. By default, anyone in your organization using Teams can see (in nearly real time) if other users are available online.

Teams presence in Outlook is supported on the Outlook 2013 desktop app and later.

Source: https://docs.microsoft.com/en-us/microsoftteams/presence-admins

Request:

GET /api/mt/emea/beta/users/first.last@example.com/externalsearch HTTP/1.1
Host: teams.microsoft.com